package com.dianping.cat.configuration.server.filter.entity;

import com.dianping.cat.configuration.server.filter.BaseEntity;
import com.dianping.cat.configuration.server.filter.IVisitor;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;

public class ServerFilterConfig
  extends BaseEntity<ServerFilterConfig> {
/*  12 */   private Set<String> m_transactionTypes = new LinkedHashSet();

/*  14 */   private Set<String> m_transactionNames = new LinkedHashSet();

/*  16 */   private Set<String> m_domains = new LinkedHashSet();

/*  18 */   private Map<String, CrashLogDomain> m_crashLogDomains = new LinkedHashMap();



  private AtomicTreeConfig m_atomicTreeConfig;




/*  27 */   public void accept(IVisitor visitor) { visitor.visitServerFilterConfig(this); }


  public ServerFilterConfig addCrashLogDomain(CrashLogDomain crashLogDomain) {
    this.m_crashLogDomains.put(crashLogDomain.getId(), crashLogDomain);
    return this;
  }

  public ServerFilterConfig addDomain(String domain) {
    this.m_domains.add(domain);
/*  37 */     return this;
  }

  public ServerFilterConfig addTransactionName(String transactionName) {
/*  41 */     this.m_transactionNames.add(transactionName);
/*  42 */     return this;
  }

  public ServerFilterConfig addTransactionType(String transactionType) {
/*  46 */     this.m_transactionTypes.add(transactionType);
/*  47 */     return this;
  }


  public boolean equals(Object obj) {
/*  52 */     if (obj instanceof ServerFilterConfig) {
/*  53 */       ServerFilterConfig _o = (ServerFilterConfig)obj;

/*  55 */       if (!equals(getTransactionTypes(), _o.getTransactionTypes())) {
/*  56 */         return false;
      }

/*  59 */       if (!equals(getTransactionNames(), _o.getTransactionNames())) {
/*  60 */         return false;
      }

/*  63 */       if (!equals(getDomains(), _o.getDomains())) {
/*  64 */         return false;
      }

/*  67 */       if (!equals(getCrashLogDomains(), _o.getCrashLogDomains())) {
/*  68 */         return false;
      }

/*  71 */       if (!equals(getAtomicTreeConfig(), _o.getAtomicTreeConfig())) {
/*  72 */         return false;
      }


/*  76 */       return true;
    }

/*  79 */     return false;
  }


/*  83 */   public CrashLogDomain findCrashLogDomain(String id) { return (CrashLogDomain)this.m_crashLogDomains.get(id); }



/*  87 */   public AtomicTreeConfig getAtomicTreeConfig() { return this.m_atomicTreeConfig; }



/*  91 */   public Map<String, CrashLogDomain> getCrashLogDomains() { return this.m_crashLogDomains; }



/*  95 */   public Set<String> getDomains() { return this.m_domains; }



/*  99 */   public Set<String> getTransactionNames() { return this.m_transactionNames; }



/* 103 */   public Set<String> getTransactionTypes() { return this.m_transactionTypes; }

/*     */



  public void mergeAttributes(ServerFilterConfig other) {}



/* 133 */   public CrashLogDomain removeCrashLogDomain(String id) { return (CrashLogDomain)this.m_crashLogDomains.remove(id); }


  public ServerFilterConfig setAtomicTreeConfig(AtomicTreeConfig atomicTreeConfig) {
/* 137 */     this.m_atomicTreeConfig = atomicTreeConfig;
/* 138 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/server/filter/entity/ServerFilterConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */